import request from '@/utils/request'

// 查询日程列表
export function getCalendarInfoList(calendarInfo) {
  return request({
    url: '/calendar/info/list',
    method: 'get',
	params: calendarInfo
  })
}

// 查询日程详情
export function getCalendarInfo(calendarId) {
  return request({
    url: '/calendar/info/' + calendarId,
    method: 'get'
  })
}

// 新增日程
export function addCalendarInfo(data) {
  return request({
    url: '/calendar/info',
    method: 'post',
    data: data
  })
}

// 编辑日程
export function updateCalendarInfo(data) {
  return request({
    url: '/calendar/info',
    method: 'put',
    data: data
  })
}

// 删除日程
export function deleteCalendarInfo(calendarId) {
  return request({
    url: '/calendar/info/' + calendarId,
    method: 'delete'
  })
}

